package com.leyou.item.mapper;

import com.leyou.common.mapper.BaseMapper;
import com.leyou.item.pojo.Category;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CategoryMapper extends BaseMapper<Category> {



    @Select("select tc.* from tb_category tc inner join tb_category_brand cb on tc.id=cb.category_id where cb.brand_id=#{brandId}  ")
    List<Category> queryByBrandId(@Param("brandId") Long brandId);
}
